<?php 
	include('connect.php');
	header('Content-Type:application/json');  //此声明非常重要
	$sql = "select * from notice order by id desc limit 1";
	$result = mysqli_fetch_all(mysqli_query($db,$sql),MYSQLI_ASSOC);
	$json['notice']=$result;
	echo (json_encode($json));
 ?>